-- GENERATED SPELL FOR [Mechanar Wrecker] --


function spell0_19713(pUnit, Event) --@Pound,n/a--
pUnit:FullCastSpellOnTarget(35049,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19713', 5304, 1)
end

function Sorts_19713(pUnit, Event)
local choix_sorts_19713 = math.random(0, 0)
if choix_sorts_19713 == 0 then
pUnit:RegisterEvent('spell0_19713', 1, 1)
end
end

function mob19713_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19713', math.random(1500, 3000), 1)
end

function mob19713_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19713_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19713_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19713, 1, 'mob19713_Action')
RegisterUnitEvent(19713, 2, 'mob19713_Leave')
RegisterUnitEvent(19713, 3, 'mob19713_Kill')
RegisterUnitEvent(19713, 4, 'mob19713_Die')
